﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CorsatAdminApp.Library.TempTaskClasses
{
    class Conference
    {
        #region private variable
        private int _year;
        private List<Room> _roomList;
        private List<Bus> _busList;

        #endregion

        #region public properties

        public int Year
        {
            get { return _year; }
            set { _year = value; }
        }
        public List<Room> ConferenceRooms
        {
            get { return _roomList; }
            set { _roomList = value; }
        }
        public List<Bus> ConferenceBuses
        {
            get { return _busList; }
            set { _busList = value; }
        }

        #endregion

        #region Constructor

        public Conference()
        {
        }

        #endregion

        #region private Methods


        #endregion

        #region public Methods

        public void Save()
        {
            DataManger.SaveConference(this);
        }

        #endregion

        #region override
        public override string ToString()
        {
            return Year.ToString();
        }
        #endregion
    }
}
